<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <base href="<%=request.getContextPath()+"/"%>">
    <title>无标题文档</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript">
$(document).ready(function(){
  $(".click").click(function(){
  $(".tip").fadeIn(200);
  });
  
  $(".tiptop a").click(function(){
  $(".tip").fadeOut(200);
});

  $(".sure").click(function(){
  $(".tip").fadeOut(100);
});

  $(".cancel").click(function(){
  $(".tip").fadeOut(100);
});

});
</script>

</head>

<body>

	<div class="place">
        <span>位置：</span>
        <ul class="placeul">
            <li><a href="#">人事管理</a></li>
            <li><a href="#">部门管理</a></li>
        </ul>
    </div>
    
      
   <div class="formtitle1"><span>部门列表</span></div>
   
    <table class="tablelist" >
    	<thead>
            <tr>
                <th><input name="" type="checkbox" value="" checked="checked"/></th>
                <th>部门编号<i class="sort"><img src="images/px.gif" /></i></th>
                <th>部门名称</th>
                <th>办公地点</th>
                <th>操作</th>
            </tr>
        </thead>

        <tbody>
        <c:forEach items="${requestScope.deptList}" var="list">
            <tr>
                <td>
                    <input name="" type="checkbox" value="" />
                </td>
                <td>${list.deptno}</td>
                <td>${list.deptname}</td>
                <td>${list.location}</td>
                <td>
                    <a href="ptu/DeptServlet?method=deptFindOne&deptno=${list.deptno}" class="tablelink">修改</a>
                    <a href="ptu/DeptServlet?method=deptRemove&deptno=${list.deptno}&deptname=${list.deptname}&location=${list.location}" class="tablelink click">删除</a>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    
    </div>

    
    </div>
    
    <script type="text/javascript">
	    $('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>

</html>
